<?php

require_once 'control/common/players/form.php';
require_once 'view/adm/content/player.edit.php';
require_once 'control/adm/inbox/players/form.php';
require_once 'view/adm/inbox/player.view.php';


require_once APP_ROOT . 'view/common/layout.formview.php';
require_once APP_ROOT . 'view/common/layout.view.php';

class PlayerViewPage extends PageController {

	var $form;
	var $view;

    function PlayerViewPage() {
        parent::PageController();
        $this->form =& new PlayerViewFormController();
        $this->form->setUserType(true,true);
        $this->addChild('PlayerViewForm', $this->form);
        $this->setDefaultChild('PlayerViewForm');

        // pass form controller as a parameter

        $this->view =& new PlayerViewView('/adm/inbox/player.view.html', $this->form);
        $this->form->setView($this->view);

        $this->setDefaultView($this->view);
        $this->addView('this', WACT_DEFAULT_VIEW);
        $this->addView('success', WACT_DEFAULT_VIEW);
        $this->addView('notfound', WACT_DEFAULT_VIEW);
        $this->addView('delete', new Handle('RedirectView', array('/delete')));
        $this->addView('publish', new Handle('RedirectView', array('/publish')));
        $this->addView('deny', new Handle('RedirectView', array('/deny')));
        $this->addView('viewnext', new Handle('RedirectView', array('/viewnext')));
        $this->addView('view', new Handle('RedirectView', array('/view')));
        $this->addView('index', new Handle('RedirectView', array('/')));
    }
}

?>